.tip {
  position: fixed;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  padding: 10px;
  border-radius: 5px;
  max-width: 50%;
  max-height: 50%;
  overflow: auto;

  &.scale0 {
    transform: scale(0);
  }
  &.top {
    transform: scale(1);
    transition: transform 0.1s;
  }
  &.bottom {
    transform: scale(1);
    transition: transform 0.1s;
  }
  &.left {
    transform: translate3d(-100%, 0, 0);
  }
  &.right {
    transform: translate3d(0, 0, 0);
  }
}
.triangle {
  position: fixed;
  left: 0;
  top: 0;
  border: 10px solid transparent;
  border-top: 10px solid rgba(0, 0, 0, 0.7);
}
